<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
</head>
<body>
<div class="box">
      		<h4 class="white">
      			<span class="align-left">위협유형</span>
	      		<span class="align-right">마감상태(정보식별및평가) :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[2].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
	 <div class="box-container2">
		 <form action="riskIAction.do" method="post" name="baseT">
        	<input type="hidden" name="reloadPageName" value="#tabs-2"></input>
		 <c:choose>
			<c:when test="${requestScope.update=='Y' }">
	 			<input type="hidden" name="mode" value="baseT_update"></input>
			</c:when>
			<c:otherwise>
				 <input type="hidden" name="mode" value="baseT_insert"></input>
			</c:otherwise>
		</c:choose>	
		 	<table class="insertTableL" >
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-right">
	                     		<c:choose>
		                       		<c:when test="${sessionScope.magamSession[2].state !='Y'}">
		                       		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
		                       			<a href="#" class="button" onclick="riskIWrite('baseT'); return false;"><span>저장</span></a>
		                       		</c:when>
		                       		<c:otherwise>
		                       			<a href="#" class="button1 addMargin" onclick="return false;"><span>저장</span></a>
		                       		</c:otherwise>
		                       	</c:choose>
	                     	<a href="#" class="button" onclick="javascript: riskICancleWriteTab('baseATV', 2)"><span>닫기</span></a></div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL" >
	   			<colgroup>
	   				<col width="110px"/>
	   				<col width="80px"/>
	   				<col width="110px"/>
	   				<col/>
	   			</colgroup>
	   			<tbody>
	   			<%--
						<tr height="30px">
							<th width="80px" align="center" class="cal">순번</th>
							<td align="left">
								<c:choose>
									<c:when test="${requestScope.update=='Y' }">
										<input type="text" name="tk_id" id="tk_id" style="border:#bfbfbf 1px solid; background-color: #ffffff;" maxlength="4" size="4" value="${requestScope.vo.tk_id }" readonly="readonly"></input>
									</c:when>
									<c:otherwise>
										<input type="text" name="tk_id" id="tk_id" style="IME-MODE: disabled; border:#bfbfbf 1px solid; background-color: #ffffff;" maxlength="4" size="4" value="${requestScope.maxNo }"  onKeyDown='evKey(event)'  onkeyup="inputCheckSpecial(this)"></input>
									</c:otherwise>
								</c:choose>									
							</td>
						</tr>
					 --%>
					 <tr>
	   					<td class="titleName">위협유형코드 <span class="red">＊</span></td>
	   					<td>
	   						 <c:choose>
								<c:when test="${requestScope.update=='Y' }">
									<input type="text" name="base_lev1" id="base_lev1" style='IME-MODE: disabled; width: 93%' maxlength="2" onkeyup="javascript: inputCheckSpecial(this)"onkeydown='evKey(event)' value="${requestScope.vo.base_lev1 }" readonly="readonly"></input>
								</c:when>
								<c:otherwise>
									<input type="text" name="base_lev1" id="base_lev1" style='IME-MODE: disabled; width: 93%' maxlength="2"  onkeyup="javascript: inputCheckSpecial(this)"onkeydown='evKey(event)'></input>
								</c:otherwise>
							</c:choose>	
	   					</td>
	   					<td class="titleName">위협유형 <span class="red">＊</span></td>
	   					<td>
	   						<input type="text" name="tk_nm1" id="tk_nm1" maxlength="30"  class="width98" onkeyup="javascript: inputCheckSpecial(this)" value="${requestScope.vo.tk_nm1 }" ></input>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">위협코드 <span class="red">＊</span></td>
	   					<td>
	   						<c:choose>
								<c:when test="${requestScope.update=='Y' }">
									<input type="text" name="base_lev2" id="base_lev2" style='IME-MODE: disabled; width: 93%' maxlength="2"  onkeyup="javascript: inputCheckSpecial(this)" onkeydown='evKey(event)' value="${requestScope.vo.base_lev2 }" readonly="readonly"></input>
								</c:when>
								<c:otherwise>
									<input type="text" name="base_lev2" id="base_lev2" style='IME-MODE: disabled; width: 93%' maxlength="2"  onkeyup="javascript: inputCheckSpecial(this)" onkeydown='evKey(event)'></input>
								</c:otherwise>
							</c:choose>
	   					</td>
	   					<td class="titleName">위협명 <span class="red">＊</span></td>
	   					<td>
	   						<input type="text" name="tk_nm2" id="tk_nm2"  maxlength="30" class="width98" onkeyup="javascript: inputCheckSpecial(this)" value="${requestScope.vo.tk_nm2 }" ></input>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">상세위협코드 <span class="red">＊</span></td>
	   					<td>
	   						<c:choose>
								<c:when test="${requestScope.update=='Y' }">
									<input type="text" name="base_lev3" id="base_lev3" style='IME-MODE: disabled; width: 93%' maxlength="2" onkeyup="javascript: inputCheckSpecial(this)" onkeydown='evKey(event)'value="${requestScope.vo.base_lev3 }" readonly="readonly"></input>
								</c:when>
								<c:otherwise>
									<input type="text" name="base_lev3" id="base_lev3" style='IME-MODE: disabled; width: 93%' maxlength="2"  onkeyup="javascript: inputCheckSpecial(this)" onkeydown='evKey(event)'></input>
								</c:otherwise>
							</c:choose>
	   					</td>
	   					<td class="titleName">상세위협명 <span class="red">＊</span></td>
	   					<td>
	   						<input type="text" name="tk_nm3" id="tk_nm3" maxlength="30" class="width98" onkeyup="javascript: inputCheckSpecial(this)" value="${requestScope.vo.tk_nm3 }" ></input>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">위협원천</td>
	   					<td colspan="3">
	   						<div style="font-size:11px;"><input type="checkbox" class="chkCursor" name="tk_d" id="tk_d"  value='1' <c:if test="${requestScope.vo.tk_d == 1 }">checked="checked"</c:if>></input> <label for="tk_d" style="cursor:pointer">D(의도적) 정보자산을 목표로 한 모든 의도적 활동</label></div>
							<br/>
							<div style="font-size:11px;"><input type="checkbox" class="chkCursor" name="tk_a" id="tk_a" value='1' <c:if test="${requestScope.vo.tk_a == 1 }">checked="checked"</c:if>></input> <label for="tk_a" style="cursor:pointer"> A(우연적) 정보자산에 의도하지 않은 피해를 주는 모든 사람의 활동</label></div>
							<br/>
							<div style="font-size:11px;"><input type="checkbox" class="chkCursor" name="tk_e" id="tk_e"  value='1' <c:if test="${requestScope.vo.tk_e == 1 }">checked="checked"</c:if>></input> <label for="tk_e" style="cursor:pointer"> E(환경적) 사람의 활동이 아닌 모든 위험</label></div>
	   					</td>
	   				</tr>
	   			</tbody>
	   		</table>
   		</form>
	</div>
</div>
</body>
</html>
